package com.example.service.impl;

import com.example.mapper.CommentsMapper;
import com.example.pojo.Comments;
import com.example.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentsServiceImpl implements CommentsService {

    @Autowired
    private CommentsMapper commentsMapper;

    @Override
    public List<Comments> list(Integer goodsId, Integer stuId) {
        return commentsMapper.list(goodsId, stuId);
    }
}